package com.mmgc.shop.activity

import android.os.Bundle
import com.flutter_yfree.YFlutterPlugin
import com.mmgc.shop.plugin.AppPlugin
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant

lateinit var mainActivity: MainActivity

class MainActivity : FlutterActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mainActivity = this
    }

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        GeneratedPluginRegistrant.registerWith(flutterEngine)
        YFlutterPlugin.registerWith(this, flutterEngine)
        AppPlugin().register()
    }
}
